<template>
  <span>
    <el-tooltip v-if="tips" class="item" effect="dark" :content="tips" placement="top">
      <slot slot="default" name="default"></slot>
    </el-tooltip>
    <template v-else>
      <slot slot="default" name="default"></slot>
    </template>
  </span>
</template>

<script>
export default {
  name: 'index',
  props: {
    tips: {
      type: String,
      default: ''
    }
  }
}
</script>
